package conchmusic.conchmusicclient.dao;

import conchmusic.conchmusicclient.pojo.Song;
import conchmusic.conchmusicclient.pojo.SongList;
import conchmusic.conchmusicclient.pojo.UpdatedData;
import conchmusic.conchmusicclient.pojo.User;

import java.util.List;

/**
 * Created by 76706 on 2017/4/23.
 */

public interface InterfaceControl {
    //服务端信息更新
    public void update(UpdatedData updatedData);

    //用户得到歌单信息
    public List<SongList> getSongLists(int userId);

    //本地增加歌曲
    public void addLocalSong(Song song);

    //歌单中搜素歌曲
    public List<Song> findSongs(int songListId,String title);

    //查看歌单歌曲
    public List<Song> findSongs(int songListId);

    //查找歌曲
    public Song findSong(int localSongId);

    //从歌单删除没有删除源文件
    public void deleteSong(int localSongId,int songListId);

    //删除源文件
    public void deleteOriginSong(int localSongId,int songListId);

    //下载歌曲
    public void downLoadSong(Song song);

    //得到上次登陆用户
    public User Login();

    //查找用户
    public User findUser(int userId);

    //登出
    public boolean logout(int userId);

    //增加歌曲
    public void addSong(Song song);

    //得到歌曲localSongId
    public Song findCloudSong(Song song);
}
